package com.war.service.outofstorage;

import com.war.pojo.outofstorage.ProductOut;
import com.war.pojo.outofstorage.ProductReturn;
import com.war.pojo.system.Customer;
import com.war.pojo.system.Warehouse;

import java.util.HashMap;
import java.util.List;

public interface ProductReturnService {
    //查询
    HashMap<String, Object> select(ProductReturn pr);
    //根据returnId查询
    ProductReturn selectByReturnId(ProductReturn pr);
    //删除信息
    String delInfo(ProductReturn pr);
    //修改信息
    String update(ProductReturn pr);
    //退货
    String addReturn(ProductReturn pr);
    //判断
    String ifExistWarehousingId(ProductOut po);
    //查看出库数量
    int storageNumOver(ProductReturn pr);

    //批量删除
    String delAll(List<ProductReturn> pr);

    //获取客户姓名
    List<Customer> selectClientName();
    //获取仓库名称
    List<Warehouse> selectWarehouseName();
    //获取仓库管理员姓名
    String getAdministrator(Warehouse warehouse);

}
